from django.urls import path
from .views import author_views, mail_views

urlpatterns = [
    # 将views.index 换成 IndexView.as_view()
    # views.IndexView.as_view()
    # 测试session连接
    path('user/test_session', author_views.test_session),
    # 认证
    path('user/authorize',author_views.authorize),
    # 获取登录状态
    path('user/status', author_views.get_status),
    # 登出
    path('user/logous', author_views.logout),
    # 获取user的基本信息
    path('user/basic_info', author_views.UserInfo.as_view()),
    # 每次登录更新信息
    path('user/login_update', author_views.UserInfo.as_view()),
    # 生日更新
    path('user/birth_update', author_views.update_birthday),
    # 获取生日
    path('user/birth', author_views.get_birthday),
    # 兴趣
    path('user/interests', author_views.get_interest_list),
    path('user/interests_update', author_views.update_interest_list),
    # 获取语言及其熟练度
    path('user/language', author_views.get_language_level),
    path('user/language_update', author_views.update_language_level),
    path('user/pair', author_views.get_match),
    path('user/pair_update', author_views.update_match),
    path('user/stamp', author_views.get_all_stamp_IdAndNum),
    path('user/pal_info', author_views.getAllInfoFromFriendsList),
    path('user/pal_list', author_views.getFriendsList),
    path('user/pair_list', author_views.LoadData.as_view()),
    path('user/pair_info', author_views.pair_info),
    path('user/delay_time', author_views.delay_time),
    # mail模块
    path('mail/recent', mail_views.get_recent),
    path('mail/mail_with', mail_views.get_all_mail),
    path('mail/stamp_icon', mail_views.get_icon),
    path('mail/stamp_all', mail_views.get_stamp_idAndName),
    path('mail/details', mail_views.get_mail_detail),
    path('mail/post', mail_views.post_email),
    path('mail/on_the_way', mail_views.get_is_emailing),
    path('mail/post_no_img', mail_views.post_no_img)
]